package com.klikmee.sms.core.base.communicator.telenor.longsms;

import com.klikmee.sms.core.base.communicator.telenor.TelenorCommunicatorImpl;

public class LongSMSExtractorFactory {
	public static LongSMSExtractor getExtractor( String messageBody ) {
		if (messageBody.startsWith( TelenorCommunicatorImpl.LONGSMSHEADER5BIT )) {
			return new FiveBitHeaderExtractorImpl( messageBody );
		}

		throw new RuntimeException( String.format( "Unknown long sms header [%s]", messageBody ) );
	}
}
